

//引入文件操作模块

var  fs = require("fs");

//读取文件的异步情况

/*
fs.readFile("file/1.txt","utf-8",function (err,data) {
    if(err){
        console.log(err);
    }else{
        console.log(data);
    }
});

console.log("hou 22266622222bian");
*/


//阻塞操作、同步操作
var aa=fs.readFileSync("file/1.txt","utf-8");
console.log(aa);